package com.android.systemui.ios.notice;

import android.graphics.drawable.Drawable;

public class NoticeData {

    public static final int TYPE_HEADER_TITLE = 1;

    private long when;

    private int mType;

    private String key;

    private Drawable mIcon;

    private String mTitle;

    private String mSummary;

    private String pkgName;

    private String clsName;

    private int appMode;

    private int mFlags;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setPkgName(String pkgName) {
        this.pkgName = pkgName;
    }

    public NoticeData() {
        mType = 0;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String mTitle) {
        this.mTitle = mTitle;
    }

    public String getSummary() {
        return mSummary;
    }

    public void setSummary(String mSummary) {
        this.mSummary = mSummary;
    }

    public long getWhen() {
        return when;
    }

    public void setWhen(long when) {
        this.when = when;
    }

    public Drawable getIcon() {
        return mIcon;
    }

    public void setIcon(Drawable icon) {
        this.mIcon = icon;
    }

    public String getPkgName() {
        return pkgName;
    }

    public String getClsName() {
        return clsName;
    }

    public int getFlags() {
        return mFlags;
    }

    public void setFlags(int flags) {
        mFlags = flags;
    }

    public boolean isSame(NoticeData other) {
        if (key != null && key.equals(other.key)) {
            if (pkgName != null && pkgName.equals(other.pkgName)) {
                return true;
            }
        }
        return false;
    }

    public int getViewMode() {
        return appMode;
    }
}
